package com.wsjc.manager.entity;

import java.util.Date;

/**
 * 
 * @Description 软件表
 * @ClassName   WjSoft 
 * @Date        2018年7月22日 下午6:04:40 
 * @Author      liyang 
 *
 */
public class WjSoft {
	
	/** 主键 */
    private String id;

    /** 软件秘钥 */
    private String key;

    /** 软件名字 */
    private String name;

    /** 版本信息 */
    private String version;

    /** 软件说明 */
    private String instruction;

    /** 创建时间 */
    private Date createTime;

    /** 软件类型 */
    private String fileType;

    /** 下载地址（OSS路径） */
    private String ossUrl;

    /** 来源 */
    private String source;

    public WjSoft(String id, String key, String name, String version, String instruction, Date createTime, String fileType, String ossUrl, String source) {
        this.id = id;
        this.key = key;
        this.name = name;
        this.version = version;
        this.instruction = instruction;
        this.createTime = createTime;
        this.fileType = fileType;
        this.ossUrl = ossUrl;
        this.source = source;
    }

    public WjSoft() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key == null ? null : key.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version == null ? null : version.trim();
    }

    public String getInstruction() {
        return instruction;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction == null ? null : instruction.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType == null ? null : fileType.trim();
    }

    public String getOssUrl() {
        return ossUrl;
    }

    public void setOssUrl(String ossUrl) {
        this.ossUrl = ossUrl == null ? null : ossUrl.trim();
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", key=").append(key);
        sb.append(", name=").append(name);
        sb.append(", version=").append(version);
        sb.append(", instruction=").append(instruction);
        sb.append(", createTime=").append(createTime);
        sb.append(", fileType=").append(fileType);
        sb.append(", ossUrl=").append(ossUrl);
        sb.append(", source=").append(source);
        sb.append("]");
        return sb.toString();
    }
}